{% extends "blog/base.html" %}
{% load blog_tags %}

{% block title %}My Blog{% endblock %}

{% block content %}
    <h1>My Blog</h1>
    {% for post in posts %}
        <h2>
            <a href="{{ post.get_absolute_url }}">
                {{ post.title }}
            </a>
        </h2>
        <p clas="tags">Tags: {{ post.tags.all|join:", " }}</p>
        <p class="date">
            Published {{ post.publishe }} by {{ post.author }}
        </p>
        {{ post.boby|markdown|truncatewords_html:30 }}
    {% endfor %}
    {% include "pagination.html" with page=page_obj %}
{% endblock %}